//
//  ZPTakePhotoView.h
//  NothingIsImpossible
//
//  Created by hztuen on 15/8/20.
//  Copyright (c) 2015年 hztuen. All rights reserved.
//

#import <UIKit/UIKit.h>

//typedef NS_ENUM(NSInteger, ZPTakePhoto) {
//   ZPTakePhotoNone,
//   ZPTakePhotoFromCamera,
//   ZPTakePhotoFromAlbum
//};

@protocol ZPTakePhotoViewDelegate;
 
@interface ZPTakePhotoView : UIView
{
   UIImageView *lastImageV;
   UIImage *newImage;
    float lastScale;
    CGSize lastSize;
    UIView *view2;
 
}

@property(nonatomic,assign)id<ZPTakePhotoViewDelegate> delegate;
 
-(id)initWithImage:(UIImage *)image :(float)scaleYX;//高宽比
//-(UIImage*)ZPTakePhotoView;

@end

@protocol ZPTakePhotoViewDelegate<NSObject>

-(void)readImage:(UIImage *)image;

-(void)cancelSelectImage;
// -(UIImage*)ZPTakePhotoView;

@end
